# makefile for opentick python binding 

LIBDIR = ../Lib 

CC = g++ 
LD = g++ 

LDFLAGS = -shared -fPIC 
LIBFLAGS = -static $(LIBDIR)/libOTFeed.a -lpthread 
INCFLAGS = -I/usr/include/python2.5/ -I../Include -I. 
CFLAGS = -Wall -g -O2 -D__LINUX $(INCFLAGS) 

TARGET = opentick.so 
OBJS = opentick.o 

.cpp.o: 
   $(CC) $(CFLAGS) -c $< 

$(TARGET): $(OBJS) 
   $(LD) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBFLAGS) 

all: $(TARGET) 

clean: 
   rm -f $(TARGET) $(OBJS)
